import type { ProfileType } from "~/types/user";

export default () => {
    const { createHttpFetch } = useHttpRequest();

    const getProfileById = () => {
        return createHttpFetch<ProfileType>('/api/profile', { method: 'GET' });
    };

    return { getProfileById };
};